<?php
use yii\helpers\Url;

$user_active_action = Yii::$app->controller->action->id;
?>
<div class="user-center-left">
    <ul class="left_menu_list">
        <li class="item">
            <a href="<?php echo Url::to(['/customer/customer-info']);?>" <?php if($user_active_action == 'customer-info'){?>class="user_active"<?php }?>>
                <span class="icon icon-edit"></span>会员资料
            </a>
        </li>
        <li class="item">
            <a href="<?php echo Url::to(['/customer/customer-right']);?>" <?php if($user_active_action == 'customer-right'){?>class="user_active"<?php }?>>
                <span class="icon icon-file"></span>会员权益
            </a>
        </li>
        <li class="item">
            <a href="<?php echo Url::to(['/customer/coupon']);?>" <?php if($user_active_action == 'coupon'){?>class="user_active"<?php }?>>
                <span class="icon icon-yhj"></span>我的优惠劵
            </a>
        </li>
        <li class="item">
            <a href="<?php echo Url::to(['/customer/collection']);?>" <?php if($user_active_action == 'collection'){?>class="user_active"<?php }?>>
                <span class="icon icon-user-hart"></span>我的心愿单
            </a>
        </li>
        <li class="item">
            <a href="<?php echo Url::to(['/customer/modify-password']);?>" <?php if($user_active_action == 'modify-password'){?>class="user_active"<?php }?>>
                <span class="icon icon-lock"></span>修改密码
            </a>
        </li>
    </ul>
</div>